package com.ecommerce.payment.entity;

/**
 * 支付状态枚举
 */
public enum PaymentStatus {
    PENDING(1, "待支付"),
    PROCESSING(2, "支付中"),
    SUCCESS(3, "支付成功"),
    FAILED(4, "支付失败"),
    REFUNDED(5, "已退款");

    private final int code;
    private final String description;

    PaymentStatus(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() { return code; }
    public String getDescription() { return description; }
}